<!DOCTYPE HTML>
<html>
  <head>
    <title>Wait</title>
  </head>
  <body>
    <div id="container">
    </div>
    <script type="text/javascript">
      function addElement(className) {
        var node = document.createElement("div")
          , text = document.createTextNode(className)
        node.className = className
        node.appendChild(text)

        document.getElementById("container").appendChild(node)
      }

      setTimeout(function() {
        addElement("main")

        for (i = 0; i < 5; i++) { addElement("orange") }
      }, 700)
    </script>
  </body>
</html>
